<fileinfo> : File Info
Provides information (size, creation time, last access time, last modification time) about specified file.
Syntax:
<fileinfo>("File", "Info", "ResultVar")
File
Full path to the file (e.g., "c:\mydocuments\file.doc").
Info
Specifies the type of information to be retrieved. Can be one of the
following values:
"SIZE" - retrieves file size
"TIME_WRITE" - retrieves the last modification time
"TIME_ACCESS" - retrieves the last access time
"TIME_CREATE" - retrieves the creation time
ResultVar
Variable that receives the result.
Example:
<#> This macro retrieves information about the file
you select
<#>
<cmds>
<var_oper>(vFile,"",SELECT_FILE,"Select File","", "0")
<fileinfo>("vFile","SIZE","vFileSize")
<fileinfo>("vFile","TIME_WRITE","vFileTime")
<msg>(-100,-100,"File size is: %vFileSize%
Last modification time is: %vFileTime%","File Info",1)